package com.hisicom.scqxspxcjc.sceneCheck.report.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hisicom.scqxspxcjc.base.bean.BaseEntity;
import com.hisicom.scqxspxcjc.base.tool.comment.OComment;
import com.hisicom.scqxspxcjc.common.file.bean.FileBean;
import com.hisicom.scqxspxcjc.sceneCheck.resultDecision.domain.ResultDecisionBusiness;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

/**
 * 体系核查现场核查报告对象 ylqx_txhc_xcjcbg
 *
 * @author zhonggls
 * @date 2023/9/25 17:51
 * @Explain
 */
@Data
@Entity
@Table(name = "ylqx_txhc_xcjcbg")
public class Report extends BaseEntity {
    @OComment("分组id")
    @Column(length = 32)
    private String groupId;
    @OComment("主表id")
    @Column(length = 258)
    private String mainId;
    @OComment("注册申请人")
    @Column(length = 512)
    private String zcsqr;
    @OComment("受托方")
    @Column(length = 512)
    private String stf;
    @OComment("生产地址")
    @Column(length = 512)
    private String scdz;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @OComment("检查日期开始")
    private Date jcrq;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @OComment("检查日期结束")
    private Date endjcrq;
    @OComment("产品名称")
    @Column(length = 256)
    private String cpmc;
    @OComment("分类编码")
    @Column(length = 258)
    private String flbm;
    @OComment("产品受理号")
    @Column(length = 258)
    private String cpslh;
    @OComment("本次核查覆盖的规格型号")
    @Column(length = 258)
    private String fgdggxh;
    @OComment("核查类型(1首次注册2变更注册)")
    @Column(length = 4)
    private String hclx;
    @OComment("产品类别")
    @Column(length = 258)
    private String cplb;
    @OComment("核查依据")
    @Column(length = 32)
    private String hcyj;
    @OComment("核查内容")
    @Column(length = 8)
    private String hcnr;
    @OComment("检查过程")
    @Column(length = 20480)
    private String jcgc;
    @OComment("现场检查结论")
    @Column(length = 8)
    private String xcjcjl;
    @OComment("类型(1首次检查2整改复查)")
    @Column(length = 4)
    private String var1;
    @OComment("关键项总量")
    @Column(length = 8)
    private String var2;
    @OComment("一般项总量")
    @Column(length = 8)
    private String var3;
    @OComment("总体评价")
    @Column(length = 2048)
    private String var4;
    @OComment("备注")
    @Column(length = 2048)
    private String remark;
    //    //备用字段
//    private String var5;
//    // 备用字段
//    private String var6;
//    // 备用字段
//    private String var7;
//    // 备用字段
//    private String var8;
//    //  备用字段
//    private String var9;
    //检查人员
    @Transient
    private List<ReportInsp> jcryList;
    @Transient
    private List<ResultDecisionBusiness> resultDecisionList;
    @Transient
    private List<FileBean> fileBeanList;
    //    // 环节id
//    private String taskId;
//    //申请表id
//    private String applyId;
    //  临时接收页面状态(0保存1提交下一步)
    @OComment("临时接收页面状态")
    @Column(length = 4)
    private String status;

}
